// global style
.icon {
    position: relative;
    width: 1.2rem;
    height: 1.25rem;
    overflow: hidden;
    fill: var(--c-text);
}


.card_border {
    border-radius: var(--card-radius);
    overflow: hidden;
    min-height: 20rem;
    background-color: var(--c-bg);
    position: relative;
    box-shadow: 0 0 10px var(--card-shadow);
}

.sider_keeper {
    width: var(--sidebar-width);
    margin-right: 1.5rem;
    .tags {
        padding: 15px;
        span {
            margin-bottom: 10px;  // 放入sidebar组件中在切换页面时会失效
        }
    }
}

.main {
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 1rem;
    width: 91%;
}

.content_container {
    flex-grow: 1;
    position: relative;
    width: 50%;
}

.article_container {
    padding: 1rem;
    min-height: inherit;
}

.category_tag_key {
    min-height: inherit;
    margin-bottom: 1.5rem;
    padding: 15px 0 15px 30px;
}

.category_tag_icon {
    display: inline-block;
    vertical-align: text-top;
    margin-right: 10px;
}

.title_font {
    font-weight: 900;
    font-size: 1.25rem;
}

.category_tag_name {
    font-weight: 900;
}

.title_color {
    color: var(--title-font-color);
    background: var(--title-bg-color);
}

.category_tag_card {
    min-height: inherit;
    padding: 1rem;
    margin-bottom: 1.5rem;
    ul {
        padding-left: 0;
    }
}

.category_tag_item_name {
    padding: 0.375rem;
    display: inline-block;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    margin-bottom: 10px;
    &:hover {
        color: var(--theme-color);
    }
}

.category_tag_item_count {
    font-size: 0.75rem;
    padding: 0.375rem;
    display: inline-block;
    cursor: pointer;
    &:hover {
        color: var(--theme-color);
    }
}

.category_tag_item_top10 {
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: inherit;
}

.top10_article_title {
    font-size: 0.9rem;
    // display: inline-block;
    margin-right: 1rem;
    // 下方为过长内容显示...
    width: 50%;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: break-word;
    overflow-x: hidden;
    .article_hover {
        padding-left: 1rem;
        padding-right: 1rem;
        border-radius: 5px;
        transition: all .2s ease;
        &:hover {
            background-color: var(--c-bg-lighter);
            cursor: pointer;
        }
    }
}

.top10_article_other_info {
    width: 35%;
    min-width: 18rem;
    display: flex;
    justify-content: space-between;   
}

.top10_article_date {
    font-size: 0.9rem;
    display: inline-block;
    margin-right: 1rem;
}

.card_tag {
    position: absolute;
    text-align: left;
    width: 100%;
    bottom: 0;
    height: 28%;
}


.search-pro-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid transparent;
    border-radius: 20px;
    opacity: 0.8;
    margin-right: 2rem;
    background-color: var(--c-bg);
    transition: all 0.2s ease;
    &:hover {
        border: 2px solid;
        border-color: var(--theme-color);
        cursor: pointer;
        background-color: inherit;
    }

    .search-icon {
        height: 1.5rem;
        width: 1.5rem;
    } 
}


.search-pro-placeholder {
    display: inline-block;
    margin-left: 2rem;
    margin: auto 2rem;
    margin-inline: inherit;
    font-size: inherit;
}


@media (max-width: 959px) {
    .back-to-top {
        display: inherit;
    }
}


// 分类列表适配
@media (max-width: 1000px) {
    .top10_mobile_hidden {
        display: none;
    }
    .top10_article_other_info {
        width: auto;
        min-width: inherit;
    }
}

// 移动端适配
@media (max-width: 767px) {
    .show_info {
        opacity: 1;
        visibility: visible;
    }
    .hidden_info {
        opacity: 0;
        visibility: hidden;
    }
    .sider_keeper {
        position: fixed;
        top: 0;
        z-index: 8;  // 低于header
        width: 100%;
        height: 100%;
        margin-right: 0;
        left: 0;
        padding-top: 100px;
        padding-bottom: 0;
        overflow: auto;
        background: var(--screen-bg-color);
        transition: all 0.3s;
        // -webkit-transition: all .3s;
    }

    .search-pro-button {
        border-radius: 0.5rem;
        border: 2px solid transparent;
        background-color: transparent;
        padding: 0.5rem 0.4rem;
        opacity: inherit;
        margin: 0;
    }
    .search-pro-placeholder {
        display: none;
    }
}
